package com.celesea.auth.user.v1.controller.resource;

import com.celesea.auth.user.entity.User;

/**
 * @author JackYuan
 * @create 2017-10-26 23:45
 */
public class PageResource {
    private String id;
    private String name;
    private String py;
    private String mobile;
    private String deptId;
    private String deptName;
    private Byte statusFlag;

    public PageResource(User user) {
        this.id = user.getId();
        this.name = user.getName();
        this.py=user.getPy();
        this.mobile = user.getMobile();
        this.deptId = user.getDeptId();
        this.deptName = user.getDeptName();
        this.statusFlag=user.getStatusFlag();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getPy() {
        return py;
    }

    public void setPy(String py) {
        this.py = py;
    }

    public Byte getStatusFlag() {
        return statusFlag;
    }

    public void setStatusFlag(Byte statusFlag) {
        this.statusFlag = statusFlag;
    }
}
